package com.king.sqlSession;

import com.king.pojo.Configuration;

/**
 * @ClassName: DefaultSqlSessionFactory
 * @Description: TODO
 * @Author: wangchangyong
 * @Date: 2020/3/26 21:22
 * @Version: 1.0.0
 **/
public class DefaultSqlSessionFactory implements SqlSessionFactory {

    private Configuration configuration;

    public DefaultSqlSessionFactory(Configuration configuration) {
        this.configuration = configuration;
    }

    @Override
    public Sqlsession openSession() {
        return new DefaultSqlSession(configuration);
    }
}
